/**
 * 
 */
package org.cnbi.utils.pojo.dash;

import org.cnbi.utils.pojo.CommonBean;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;

/**
 * Copyright © 2014中国经邦. All rights reserved.
 * @author 龚佳新
 * @date 2014年5月6日上午11:26:27
 * @cnbi-utils
 */
public class ItemBean extends CommonBean {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@JsonProperty("id")
	private String id;
	
	private int min;
	
	private int max;
	
	private String type;//slider progerss chart
	
	@JsonIgnore
	private String subject;
	
	
	@JsonIgnore
	private String fact;
	
	@JsonIgnore
	private String period;
	
	@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
	private String attr;
	
    public ItemBean(){}
    public ItemBean(String id ,String sname){
		super();
		this.id = id;
		this.sname = sname;
	}
	public ItemBean(String id ,String scode,String sname){
		super();
		this.id = id;
		this.sname = sname;
		this.scode = scode;
	}
	
	public ItemBean(String id ,String scode,String sname,int min,int max,String type){
		super();
		this.id = id;
		this.sname = sname;
		this.scode = scode;
		this.min = min;
		this.max = max;
		this.type = type;
	}
	
	

	/**
	 * @return the id
	 */
	public String getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(String id) {
		this.id = id;
	}

	/**
	 * @return the min
	 */
	public int getMin() {
		return min;
	}

	/**
	 * @param min the min to set
	 */
	public void setMin(int min) {
		this.min = min;
	}

	/**
	 * @return the max
	 */
	public int getMax() {
		return max;
	}

	/**
	 * @param max the max to set
	 */
	public void setMax(int max) {
		this.max = max;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}

	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the attr
	 */
	public String getAttr() {
		return attr;
	}

	/**
	 * @param attr the attr to set
	 */
	public void setAttr(String attr) {
		this.attr = attr;
	}
	/**
	 * @return the subject
	 */
	public String getSubject() {
		return subject;
	}
	/**
	 * @param subject the subject to set
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}
	/**
	 * @return the fact
	 */
	public String getFact() {
		return fact;
	}
	/**
	 * @param fact the fact to set
	 */
	public void setFact(String fact) {
		this.fact = fact;
	}
	/**
	 * @return the period
	 */
	public String getPeriod() {
		return period;
	}
	/**
	 * @param period the period to set
	 */
	public void setPeriod(String period) {
		this.period = period;
	}
	/* 
	 * @data 2014年6月4日  复写的方法
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "ItemBean [id=" + id + ", min=" + min + ", max=" + max + ", type=" + type + ", subject=" + subject + ", fact=" + fact + ", period=" + period + ", attr=" + attr + "]";
	}
	
	
  

}
